PaymentPlugins\Stripe\Controllers\PaymentIntent B

Total Complexity 77
Dependencies 6
Dependents 4
Total lines 327
Lines of code 239
Logical lines of code 125
Comment lines 43
Methods 24
Properties 6

Methods 24

Method Rating Maintainability Complexity Lines of code
maybe_create_intent()
B
46 17 35
get_payment_method_types()
A
56 8 17
update_payment_intent_from_cart()
S
54 5 21
get_payment_methods()
S
62 5 11
create_setup_intent()
S
57 4 16
create_payment_intent_from_cart()
S
58 4 15
after_calculate_totals()
S
62 4 12
update_payment_intent_from_order()
S
54 3 20
create_payment_intent_from_order()
S
56 3 17
can_update_payment_intent()
S
67 3 8
is_setup_intent_needed()
S
77 3 3
add_script_params()
S
67 3 7
add_blocks_general_data()
S
68 2 7
add_payment_intent_to_fragments()
S
69 2 7
update_order_review()
S
70 2 6
__construct()
S
71 1 6
can_retry_request()
S
80 1 3
save_setup_intent_to_session()
S
76 1 4
save_payment_intent_to_session()
S
76 1 4
instance()
S
80 1 3
set_order_pay_constants()
S
79 1 3
is_payment_intent_required_for_frontend()
S
80 1 3
initialize()
S
65 1 8
set_intent_exists()
S
81 1 3